/* Console2.java
 * Author: liuex
 * 2007-12-14 ����04:14:26
 *
 * Note: 
 */
package org.lex.swing.widgets.console.demo;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;

import org.lex.swing.widgets.console.ConsoleEditor;

public class EchoConsoleApplication {
	private void createAndShowGUI() {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				JFrame frame = new JFrame();
				JScrollPane scroll = new JScrollPane();
				ConsoleEditor editor = new ConsoleEditor();
				scroll.setViewportView(editor);
				frame.setContentPane(scroll);
				frame.setSize(500, 400);
				frame.setLocationRelativeTo(null);
				frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				frame.setVisible(true);
			}
		});
	}

	public static void main(String[] args) {
		new EchoConsoleApplication().createAndShowGUI();
	}
}
